package com.itheima.security.springboot.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * LoginController
 * </p>
 *
 * @author flyduck
 * @since 2023/11/18
 */
@RestController
public class LoginController {

    @RequestMapping(value = "/login-success", produces = {"text/plain;charset=utf8"})
    public String loginSuccess() {
        return "登录成功";
    }

    /**
     * 测试资源1* @return
     */
    @GetMapping(value = "/r/r1", produces = {"text/plain;charset=utf8"})
    public String r1() {
        return " 访问资源1";
    }

    /**
     * 测试资源2* @return
     */
    @GetMapping(value = "/r/r2", produces = {"text/plain;charset=utf8"})
    public String r2() {
        return " 访问资源2";
    }
}
